package com.ir.mirrajabi.searchdialog.sample.customdialog;

import ir.mirrajabi.searchdialog.core.Searchable;

/**
 * Created by MADNESS on 5/16/2017.
 */
public class ContactModel implements Searchable {
    private String mName;
    private String mImageUrl;

    public ContactModel(String name, String imageUrl) {
        mName = name;
        mImageUrl = imageUrl;
    }

    /**
     * getTitle
     * @return String
     */
    @Override
    public String getTitle() {
        return mName;
    }

    /**
     * getName
     * @return String
     */
    public String getName() {
        return mName;
    }

    /**
     * setName
     * @param name name
     * @return ContactModel
     */
    public ContactModel setName(String name) {
        mName = name;
        return this;
    }

    /**
     * getImageUrl
     * @return String
     */
    public String getImageUrl() {
        return mImageUrl;
    }

    /**
     * setImageUrl
     * @param imageUrl imageUrl
     * @return ContactModel
     */
    public ContactModel setImageUrl(String imageUrl) {
        mImageUrl = imageUrl;
        return this;
    }
}
